#ifndef __HERO_H__
#define __HERO_H__

#include "../Generals/MTGame.h"
using namespace cocos2d;

class Hero : public CCNode
{
public:
	Hero(void);
	~Hero(void);
	static Hero *create();
	bool init();
	CCPoint targetTileCoord,targetPosition;
	CCSprite *heroSprite,*fightSprite;
	bool isHeroMoving,isHeroFighting;
	Direction heroDi;
	void onMoveDone(CCNode *pTarget, void* data);
	void setFaceDirection(Direction di);
	CollisionType checkCollision(CCPoint heroPos);
	void fight();
	void onFightDone(CCNode *pSender);
	void heroMove();
	void pickUpItem(CCPoint PosForMove);
	void heroMoving(CCPoint PosForMove);
};

#endif